home *** CD-ROM | disk | FTP | other *** search
/ Freaks Macintosh Archive / Freaks Macintosh Archive.bin / Freaks Macintosh Archives / Ham⁄GPS / SoftKiss.src.1.8 Folder / SoftKiss.src.1.8.sit / SoftKiss.src.1.8 / lib / sfk_die.h < prev    next >
Text File  |  1992-06-19  |  334b  |  22 lines

  1. /*
  2.  * interface to random number generator
  3.  */
  4.  
  5. /*
  6.  *  i = die (max)
  7.  *  long max;
  8.  *  returns a value from 0 to n-1, drawn from a random population with
  9.  *  even distribution.
  10.  */
  11. long die(long max);
  12.  
  13. /*
  14.  * return a random 32bit number
  15.  */
  16. unsigned long lrand(void);
  17.  
  18. /*
  19.  * pick a starting point for lrand
  20.  */
  21. void init_lrand(void);
  22.